<?php
namespace app\admin\model;

use think\Model;

class AdminRole extends Model
{
    public function getRoleIds($admin_id){
        $role = db('adminRole')->where("admin_id='$admin_id'")->select();
        $role_list = '';
        foreach ($role as $k => $v) {
            $role_list.=$v['role_id'].',';
        }
        $role_list = rtrim($role_list,',');
        return $role_list;
    }
}